package com.lujianfei.netease_android_shareelement.widget

import android.content.Context
import android.transition.ChangeBounds
import android.transition.ChangeImageTransform
import android.transition.ChangeTransform
import android.transition.TransitionSet
import android.util.AttributeSet


class DetailTransition: TransitionSet {
    constructor():super() {}
    constructor(context: Context, attrs: AttributeSet):super(context,attrs) {}
    init {
        ordering = ORDERING_TOGETHER
        addTransition(ChangeBounds()) //视图的位置和大小
        addTransition(ChangeTransform()) //视图的比例(scale)
        addTransition(ChangeImageTransform()) //图像的比例
    }
}